import React from "react";
import routeWithUserSession from "@/components/ApplicationArea/routeWithUserSession";
import ProjectToolbar from "@/components/project/ProjectToolbar";
import routes from "@/services/routes";

class ProjectNew extends React.Component {
  componentWillMount() {
  }
  render() {
    return (
      <div className="settings-screen">
        <div className="container">
          <div  style={{width:"400px",height:"40px"}}>
            <div style={{width:"20px",height:"38px", float: "left"}}>
            </div>
              <div style={{width:"50px",height:"38px", float: "left"}}>
              <img src="/static/images/project.png" alt="HR" loading="lazy"/>
            </div>
              <div style={{width:"320px",height:"30px",float:"left"}}>
              <h3 style={{margin:"7px",padding:"0"}}>{ "项目信息"}</h3>
            </div>
          </div>
            <div className="p-15">
              <ProjectToolbar  id={this.props.id} openpage={this.props.openpage} />
            </div>
        </div>
      </div>
    );
  }
}

routes.register(
  "Project.New",
  routeWithUserSession({
    path: "/project/new/:id",
    title: "项目信息",
    render: pageProps => <ProjectNew {...pageProps} openpage="jbxx"/>,
  })
);

routes.register(
  "Project1.New",
  routeWithUserSession({
    path: "/project/new/employee/:id",
    title: "项目信息",
    render: pageProps => <ProjectNew {...pageProps} openpage="ryxx"/>,
  })
);